package com.easygoods.request;

import com.bestvike.stone.spring.exception.AssertUtils;
import com.bestvike.stone.spring.page.PageableRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by 许崇雷 on 2019-01-02.
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SpuListRequest extends PageableRequest {
    private String categoryId;

    /**
     * 验证参数有效性
     */
    @Override
    public void assertValid() {
        super.assertValid();
        AssertUtils.hasText(this.categoryId, "categoryId");
    }
}
